Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / Print Object Messages


GXDefaultJob

QuickDraw GX sends the GXDefaultJob message when an application creates a new job. You can override the GXDefaultJob message to add to or modify the contents of the job object. Your override of the GXDefaultJob message must match the following formal declaration:

OSErr MyDefaultJob (void);
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX sends the GXDefaultJob message when an application calls the GXNewJob function to create a new job object.

You override this message if you need to add additional data to the job object when it is created. After you forward this message down the message chain, you can add your own information to the job object or change information that was placed there by the default implementation.

The default implementation of this message provides the default information for this
job object.

SPECIAL CONSIDERATIONS
You can find an example of an override of the GXDefaultJob message in Listing 3-6 on page 3-28 in the chapter "Printer Drivers."

You never send the GXDefaultJob message yourself.

You must forward the GXDefaultJob message to other message handlers. Always forward it before you add or change job information.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
SEE ALSO
The GXNewJob function is described in Inside Macintosh: QuickDraw GX Printing.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help